package com.zp.qualitypractice.mvp3;

import java.util.List;

/**
 * Created by izp on 2017/6/1.
 */

public interface  MainContract {
    interface View extends BaseContract.BaseView<Presenter> {
        void querySuccess(List<Object> list);
        void shareUsers(int count);
        void queryFail(Error e);
        void queryTotalMoneySuccess(double totalCost, double totalIncome);
        void queryTotalMoneyFail(Error e);
        void deleteSuccess();
        void deleteFail(Error e);
        void showOperateAccountDialog(Object account);
        void showDeleteAccountDialog(Object account);
    }

    interface Presenter extends BaseContract.BasePresenter {
        void queryAccount(Object user, String startDate, String endDate, int page);
        void queryAccountTotalMoney(Object user, String startDate, String endDate);
        void deleteAccount(Object account);
    }
}
